package com.jh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jh.dto.InventoryTransactionSelectDTO;
import com.jh.entity.InventoryTransaction;
import com.jh.vo.InventoryTransactionDetails;
import com.jh.vo.InventoryTransactionVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InventoryTransactionMapper extends BaseMapper<InventoryTransaction> {
    Page<InventoryTransactionVO> getInventoryTransaction(
            Page<InventoryTransactionVO> page,
            @Param("pageQueryDTO") InventoryTransactionSelectDTO pageQueryDTO);

    List<InventoryTransactionDetails> getInventoryTransactionDetails(Long inventoryTransactionId);
}
